package com.kwt.learn.dynamicproxy.cglib;

public class Main {
    public static void main(String[] args) {
        //创建目标类
        TargetClass targetClass = new TargetClass();
        //生成代理
        CGLibProxy<TargetClass> proxy= new CGLibProxy<>(targetClass);
        //生成代理类
        TargetClass proxyClass = proxy.creatProxy();
        proxyClass.execute();

    }
}
